package luob.common;

import com.jfinal.core.Controller;
import jfinal.rest.API;

/**
 * Created by luob on 15/6/13.
 */
@API("/")
public class IndexController extends Controller {
    public void index() {
        render("index.html");
    }

    public void get() {
        setAttr("error", ErrorCode.OK);
        setAttr("data", "luob app by jfinal rest");
        renderJson();
    }
}
